function ccmatrix = rawResToCCmatrix(rawRes)

x = unique(rawRes(:,1)); % index to none blank columns
y = unique(rawRes(:,2)); % index to none blank rows

for i = 1:length(x)
    xi(x(i) + 1) = i;
end

for i = 1:length(y)
    yi(y(i) + 1) = i;
end

ccmatrix = full(sparse(xi((rawRes(:,1)+1)),(yi(rawRes(:,2)+1)),rawRes(:,3)));
